import {Injectable} from '@angular/core';
import {_HttpClient} from '@delon/theme';
import {Observable} from 'rxjs/Observable';
import {CluesModel} from './clues-model';

@Injectable()
export class CluesService {


    url_list = 'Clues/clueslist';
    url_del = 'Clues/del';

    constructor(private http: _HttpClient) {
    }


    getlist(page: number): Observable<CluesModel> {
        return this.http.get(this.url_list, {page: page});
    }

    del(id: number): Observable<string> {
        return this.http.delete(this.url_del, {id: id});
    }
}
